FROM node:18.18.2
WORKDIR /app
RUN npm install -g pnpm
# copy package.json yarn.lock and install before copy src
# to use previously cached layers
COPY package.json ./
RUN pnpm config set registry https://registry.npmmirror.com
RUN pnpm i